package com.singbon.server.dao;
import com.singbon.server.pojo.AuthGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
/**
 */
@Mapper
public interface AuthgroupMapper {
  /**
   * Delete by primary key int.
   *
   * @param id the id
   * @return the int
   */
  int deleteByPrimaryKey(Integer id);
  /**
   * Insert int.
   *
   * @param record the record
   * @return the int
   */
  int insert(AuthGroup record);
  /**
   * Insert selective int.
   *
   * @param record the record
   * @return the int
   */
  int insertSelective(AuthGroup record);
  /**
   * Select by primary key auth group.
   *
   * @param id the id
   * @return the auth group
   */
  AuthGroup selectByPrimaryKey(Integer id);
  /**
   * Update by primary key selective int.
   *
   * @param record the record
   * @return the int
   */
  int updateByPrimaryKeySelective(AuthGroup record);
  /**
   * Update by primary key int.
   *
   * @param record the record
   * @return the int
   */
  int updateByPrimaryKey(AuthGroup record);
  /**
   * Select by id auth group.
   *
   * @param groupid the groupid
   * @return the auth group
   */
  @Select("select * from  authgroup  where id = #{groupid,jdbcType=INTEGER}")
  AuthGroup selectById(Integer groupid);
}
